//资产配置新列表接口数据模拟


// 使用 Mock
var Mock = require('mockjs');

//注册
var data = Mock.mock({
	"status": "0000",
	"message": "接口请求成功",
	"data": {
        "suggestedAllocationChart": [
            {name: "保障类", value: 0.08},
            {name: "现金类", value: 3},
            {name: "债权类", value: -30.05},
            {name: "证券类", value: -3.37},
            {name: "海外类", value: 134.36},
            {name: "另类", value: -4.02}

        ],
        "currentAllocationChart": [
            {value: 0, name: '现金类'},
            {value: 234, name: '债权类'},
            {value: 310, name: '证券类'},
            {value: 0, name: '另类'},
            {value: 135, name: '保障类'},
            {value: 1548, name: '海外类'}
        ],
        "adjustmentSuggestedChart": [{
            "type": "现金类",
            "now": 150.00,
            "suggest": 50.00,
            "subtracting": -100.00
        }, {
            "type": "债权类",
            "now": 10.00,
            "suggest": 0,
            "subtracting": -10.00
        }, {
            "type": "证券类",
            "now": 10.00,
            "suggest": 116.00,
            "subtracting": 106.00
        }, {
            "type": "另类",
            "now": 10.00,
            "suggest": 0,
            "subtracting": -10.00
        }, {
            "type": "海外类",
            "now": 10.00,
            "suggest": 0,
            "subtracting": -10.00
        }, {
            "type": "保障类",
            "now": 10.00,
            "suggest": 12.00,
            "subtracting": 2.00
        }], /*[
          /!*  {type: "现金类", now: 657507111, suggest: 19727, subtracting: -637780},
            {type: "债权类", now: 12, suggest: -197617, subtracting: -197629},
            {type: "证券类", now: 12, suggest: -22189, subtracting: -22201},
            {type: "另类", now: 12, suggest: -26440, subtracting: -26452},
            {type: "海外类", now: 23, suggest: 63785, subtracting: 63762},
            {type: "保障类", now: 10, suggest: 500, subtracting: 490}*!/
            {
                type: "现金类",
                now: 0,
                suggest: 6000000000,
                color: '#6A7EDA'
            },
            {
                type: "债权类",
                now: 0,
                suggest: 1231231241,
                color: '#78AEE5 '
            },
            {
                type: "证券类",
                now: 300,
                suggest: 34242342,
                color: '#8FDADF'
            },
            {
                type: "另类",
                now: 200,
                suggest: 4243243200,
                color: '#F8DB84'
            },
            {
                type: "海外类",
                // now: 500,
                suggest: 500,
                color: '#F1AC8B'
            },
            {
                type: "保障类",
                // now: 500,
                suggest: 200000,
                color: '#DE7673'
            }
        ],*/
        "resultComparisonChart": {
            oneYear: {
                now: [10.23232323, -20.92323232323],
                suggest: [20.56, -14.9]
            },
            threeYear: {
                now: [2.0, -4.9],
                suggest: [2.0, -4.9]
            }
        },
        "historicalTrendChart": {
            "time": ['2020-1', '2020-2', '2020-3', '2020-4', '2020-5', '2020-6', '2020-7'],
            "chartData": [
                {
                    name: '推荐比例-恒天阿尔法指数',
                    lineData: [0.1, 0.2, 0.3, 0.4, 0.6, 0.3, 0.1],
                    color: '#91959d'
                },
                {
                    name: '推荐比例-市场表现',
                    lineData: [0.4, 0.3, 0.2, 0.4, 0.8, 0.2, -0.1],
                    color: '#de7572'
                },
                {
                    name: '推荐比例-模拟收益率',
                    lineData: [0.3, 0.5, 0.2, 0.5, 0.9, 0.3, -0.1],
                    color: '#6a7dda'
                }
            ]

        }
    }
});

//把生成的假数据当做模块输出
module.exports = data;
